#include<iostream>
using namespace std;
class Point {
private:
	int x;
	int y;
	int z;
public:
	Point(int X=0,int Y=0,int Z=0):x(X),y(Y),z(Z){}
	friend Point operator ++(Point& a) {
		a.x++;
		a.y++;
		a.z++;
		return a;
	}
	friend Point operator ++(Point& a,int) {
		Point b(a.x, a.y, a.z);
		a.x++;
		a.y++;
		a.z++;
		return b;
	}
	friend Point operator --(Point& a) {
		a.x--;
		a.y--;
		a.z--;
		return a;
	}
	friend Point operator --(Point& a,int) {
		Point b(a.x, a.y, a.z);
		a.x--;
		a.y--;
		a.z--;
		return b;
	}
	void set1(int X, int Y, int Z) {
		x = X;
		y = Y;
		z = Z;
	}
	void set2(const Point& a) {
		x = a.x;
		y = a.y;
		z = a.z;
	}
	Point(const Point& a) {
		x = a.x;
		y = a.y;
		z = a.z;
	}
	void show() {
		cout << "x=" << x << " y=" << y << " z=" << z << endl;
	}
};
int main()
{
	int x, y, z;
	cin >> x >> y >> z;
	Point p1(x, y, z);
	Point p2(p1++);
	p1.show();
	p2.show();
	p1.set1(x, y, z);
	p2.set2(++p1);
	p1.show();
	p2.show();
	p1.set1(x, y, z);
	p2.set2(p1--);
	p1.show();
	p2.show();
	p1.set1(x, y, z);
	p2.set2(--p1);
	p1.show();
	p2.show();
	return 0;
}